package com.example.mypra1.adapter.entity;

/**
 * 实体类：评论
 */
public class Comment {
    private int id;//评论id
    private int pubid;//评论发布者
    private String pubname;//发布者昵称
    private String profile;//发布者头像
    private String content;//评论内容
    private String imgs;//插入的图片
    private String pubtime;//发布时间(相对时间,后端处理过的)
    private int favor;//点赞的数量
    private int repcount;//回复的条数

    public Comment(int id, int pubid,String pubname,String profile,String content, String imgs, String pubtime, int favor, int repcount) {
        this.id = id;
        this.pubid = pubid;
        this.pubname = pubname;
        this.profile = profile;
        this.content = content;
        this.imgs = imgs;
        this.pubtime = pubtime;
        this.favor = favor;
        this.repcount = repcount;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPubid() {
        return pubid;
    }

    public void setPubid(int pubid) {
        this.pubid = pubid;
    }

    public void setPubname(String pubname) { this.pubname = pubname; }

    public String getPubname() { return pubname;}

    public void setProfile(String profile){
        this.profile = profile;
    }

    public String getProfile(){
        return profile;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImgs() {
        return imgs;
    }

    public void setImgs(String imgs) {
        this.imgs = imgs;
    }

    public String getPubtime() {
        return pubtime;
    }

    public void setPubtime(String pubtime) {
        this.pubtime = pubtime;
    }

    public int getFavor() {
        return favor;
    }

    public void setFavor(int favor) {
        this.favor = favor;
    }

    public int getRepcount() {
        return repcount;
    }

    public void setRepcount(int repcount) {
        this.repcount = repcount;
    }
}
